package com.zhugy.comparecode;

public class CompareResult {
	private boolean isEquals;
	private String message;

	public CompareResult(boolean isEquals, String message) {
		super();
		this.isEquals = isEquals;
		this.message = message;
	}

	public boolean isEquals() {
		return isEquals;
	}

	public void setEquals(boolean isEquals) {
		this.isEquals = isEquals;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public static CompareResult success(String message) {
		return new CompareResult(true, message);
	}

	public static CompareResult fail(String message) {
		return new CompareResult(false, message);
	}
}
